package Tests.model;

import model.Card;
import model.CardStack;
import org.junit.Assert;
import org.junit.Test;

public class CardStackTest {
    private CardStack _stack;

    @org.junit.Before
    public void setUp() throws Exception {
        _stack = new CardStack();
    }

    @Test
    public void CardStack_52Cards() {
        Assert.assertEquals(52, _stack.size());
    }
    
    @Test
    public void shuffle_anotherCardOrder() {
        Card card = _stack.peak();
        _stack.shuffle();
        Card anotherCard = _stack.peak();

        Assert.assertNotSame(card, anotherCard);
    }
}
